package sample.ui

import android.text.SpannableStringBuilder

class Spanner : SpannableStringBuilder() {
    fun append(text: CharSequence, span: Any): Spanner {
        append(text)
        setSpan(span, length - text.length,
            length, SPAN_EXCLUSIVE_EXCLUSIVE)
        return this
    }
}
